home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET
/
BCI NET Dec 94.iso
/
archives
/
applications
/
wp
/
ged11.lha
/
Install
/
data
/
main
/
GoldED
/
ARexx
/
errors.ged
< prev
next >
Wrap
Text File
|
1993-07-15
|
1KB
|
50 lines
/* $VER: 0.9 Load error file */
OPTIONS RESULTS /* enable return codes */
if (LEFT(ADDRESS(), 6) ~= "GOLDED") then /* not started by GoldEd ? */
address 'GOLDED.1'
'LOCK CURRENT' /* lock GUI, gain access */
OPTIONS FAILAT 6 /* ignore warnings */
SIGNAL ON SYNTAX /* ensure clean exit */
/* ------------------------- INSERT YOUR CODE HERE: -------------------- */
if exists("T:ERRORS") then
do
R = OPEN('ERRORS', "T:ERRORS", 'R')
bytes = SEEK('ERRORS', 0, 'E')
R = CLOSE('ERRORS')
end
else
bytes = 0
if (bytes = 0) then
do
'QUERY CAT'
if (result = "deutsch") then
'REQUEST BODY "Keine Fehler !"'
else
'REQUEST BODY "No errors !"'
end
else
'OPEN NEW T:ERRORS'
/* ---------------------------- END OF YOUR CODE ----------------------- */
'UNLOCK' /* VERY important: unlock GUI */
EXIT
SYNTAX:
SAY "Sorry, error line" SIGL ":" ERRORTEXT(RC) ":-("
'UNLOCK'
EXIT